<template>
  <div class="content">
    <el-container>
      <el-header>
        <company-about />
        <individual />
      </el-header>
      <el-container>
        <el-aside
          width="240px"
          :class="{ aside2: collapse, aside1: !collapse }"
        >
          <nav-side></nav-side>
        </el-aside>
        <el-main>
          <div class="line">
            <bread-line></bread-line>
          </div>
          <transition>
            <router-view />
          </transition>
        </el-main>
      </el-container>
    </el-container>
    <!--    <div id="nav">-->
    <!--      <router-link to="/home">Home</router-link> |-->
    <!--      <router-link to="/about">About</router-link> |-->
    <!--      <router-link to="/test">Test</router-link>-->
    <!--    </div>-->
  </div>
</template>

<script>
// import New from './components/New.vue';
import NavSide from "@/components/layout/NavSide";
import CompanyAbout from "@/components/layout/CompanyAbout";
import Individual from "@/components/layout/Individual";
import BreadLine from "@/components/layout/BreadLine";
export default {
  name: "Content",
  components: {
    BreadLine,
    Individual,
    CompanyAbout,
    NavSide,
    // New,Old,
  },
  props: {
    sampleP: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {
      sampleD: "value",
    };
  },
  computed: {
    // sampleC() {
    //     return this.sampleD+'--';
    // }
    collapse() {
      return this.$store.state.collapse;
    },
  },
  created() {},
  mounted() {},
  methods: {
    sampleM() {},
  },
  watch: {
    // sampleC(newValue, oldValue) {
    //
    // }
  },
};
</script>

<!--<style scoped>-->
<style lang="scss" scoped>
@import "src/styles";
$el-header-height: 48px;
.content {
  background-color: antiquewhite;
  height: 100vh;
}
.el-header {
  background-color: $--color-primary;
  height: $el-header-height !important;
  display: flex;
  justify-content: space-between;
}
.el-aside {
  background-color: $--color-primary;
}
.el-main {
  background-color: $--color-white;
  height: calc(100vh - #{$el-header-height});
}
.aside1 {
  width: 240px !important;
  transition-property: width;
  transition-duration: 0.35s;
  transition-timing-function: ease-out;
}
.aside2 {
  width: 64px !important;
  transition-property: width;
  transition-duration: 0.25s;
  transition-timing-function: ease-out;
}
.line{
  padding-bottom: 24px;
}
</style>
